package com.enjoyor.soa.traffic.util.enums.signal;

/**
 * 
 * @ClassName: LockStatus
 * @Description: 锁定状态
 * @author: ly
 * @date: 2019年7月19日 下午2:10:26
 */
public enum LockStatus {
	LOCK("2","锁定"),
	UNLOCK("1","未锁定");
	
	private final String key;

	private final String value;

	private LockStatus(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}
	public static String getValue(String key) {  
		LockStatus[] enums = values();  
        for (LockStatus e : enums) {  
            if (e.getKey().equals(key)) {  
                return e.getValue();  
            }  
        }  
        return null;  
    } 
}
